//
//  ColorDefinition.swift
//  RPay
//
//  Created by Charlie Liao on 2017/6/27.
//  Copyright © 2017年 Charlie. All rights reserved.
//

import Foundation

extension UIColor {
    
    /// #CD984F
    /// app主题颜色
    class var appTheme: UIColor {
        return _appTheme
    }
    
    /// #EA7126
    /// 辅助色
    class var appOrange: UIColor {
        return _appOrange
    }
    
    // MARK: - 字体颜色
    
    /// #1A1A1A
    /// 用于正文
    class var appText: UIColor {
        return _app1A
    }
    
    /// #999999
    /// 用于次级文字
    class var appSubText: UIColor {
        return _app99
    }
    
    /// #CDCFD0
    /// 用于辅助说明的文字
    class var appAidText: UIColor {
        return _appCDCFD0
    }
    
    
    /// #529AD4
    /// 用于按钮的文字
    class var appLinkText: UIColor {
        return _appLink
    }
    
    // MARK: - 背景色颜色
    
    /// #f5f5f5
    /// 用于背景底色
    class var appBackground: UIColor {
        return _appF5
    }
    
    // MARK: - 分割线颜色
    
    /// #eeeeee
    /// 用于浅色分割线
    class var appTintLine: UIColor {
        return _appEE
    }
    
    // MARK: - 颜色定义
    
    /// app主色调
    private static let _appTheme = UIColor(hex: 0xCD984F)
    
    /// 橘色
    private static let _appOrange = UIColor(hex: 0xEA7126)
    
    private static let _app1A = UIColor(hex: 0x1A1A1A)
    
    private static let _app99 = UIColor(hex: 0x999999)
    
    private static let _appF5 = UIColor(hex: 0xf5f5f5)
    
    private static let _appEE = UIColor(hex: 0xEEEEEE)
    
    private static let _appLink = UIColor(hex: 0x529AD4)
    
    private static let _appCDCFD0 = UIColor(hex: 0xCDCFD0)
    
    
}
